package practice._misc
/*

import com.typesafe.scalalogging
import com.typesafe.scalalogging.LazyLogging
import org.slf4j.LoggerFactory

/**
  * Created by lovepocky(lovepocky@foxmail.com) on 2016/4/13.
  */
object Logger {
	def main(args: Array[String]): Unit = {
		new Log4sTest
	}
	
	class test extends LazyLogging {
		//val logger = scalalogging.Logger(LoggerFactory.getLogger(this.getClass))
		logger.error("error log")
		logger.warn("warn log")
		logger.info("info log")
		logger.debug("debug log")
		logger.trace("trace log")
		//println(logger.underlying)
	}
	
	class Log4sTest {
		
		import org.log4s._
		
		private[this] val logger = getLogger(this.getClass)
		println(logger)
		println(s"logger.isErrorEnabled: ${logger.isErrorEnabled }")
		println(s"logger.isWarnEnabled: ${logger.isWarnEnabled }")
		println(s"logger.isInfoEnabled: ${logger.isInfoEnabled }")
		println(s"logger.isDebugEnabled: ${logger.isDebugEnabled }")
		logger.error("error")
		logger.warn("warn")
		logger.info("info")
		logger.debug("debug")
	}
	
}
*/
